package cn.kgc.bbmanager.controller;

import cn.kgc.bbmanager.entity.ResultEntity;
import cn.kgc.bbmanager.pojo.Sort;
import cn.kgc.bbmanager.service.SortService;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import javax.annotation.Resource;
import java.util.List;

/**
 * @author shkstart
 *
 */
@RestController
public class SortController {
    @Resource
    SortService sortService;
    @RequestMapping("/getSortList")
    public ResultEntity<List<Sort>> getSortList(){
        List<Sort> sortList=sortService.selectAll();
        return ResultEntity.successWithoutData(sortList);
    }
}
